{include file='pub/header'/}
<title>订单详情</title>
</head>
<body>
<div class="page-container">
    <form class="form form-horizontal" id="product_add">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>店铺名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.shop_name}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>订单编号：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.order_no}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>下单时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.create_time}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>下单会员：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.username}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>会员电话：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.phone}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>待配送时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.dispatch_time}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>订单状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {:config('order_status')[$item.order_status]}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>支付方式：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {:config('pay_type')[$item.pay_type]}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>支付时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.pay_time}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>配送方式：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {:config("dispatch_type")[$item.dispatch_type]}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>配送/取货时间：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.dispatch_time}
            </div>
        </div>
        {if $item.dispatch_type == 0}
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>收货人姓名：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.receiver_name}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>收货人电话：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.receiver_telephone}
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>收货地址：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.receiver_address}
            </div>
        </div>
        {/if}
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>商品详情：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <table class="table table-bordered table-hover">
                    <thead>
                    <tr class="text-c">
                        <td>商品名称</td>
                        <td>规格</td>
                        <td>原价</td>
                        <td>售价</td>
                        <td>数量</td>
                        <td>总价</td>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach $good_list as $good}
                    <tr class="text-c">
                        <td>{$good.good_name}</td>
                        <td>{$good.prop_name}</td>
                        <td>{$good.sale_price}</td>
                        <td>{$good.cost}</td>
                        <td>{$good.num}</td>
                        <td>{:sprintf("%.2f", $good.cost*$good.num)}</td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>订单原价：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.shop_cost}
            </div>
        </div>
        {if $item.coupon_id}
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>优惠券：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.coupon_fee}
            </div>
        </div>
        {/if}
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>订单优惠价：</label>
            <div class="formControls col-xs-8 col-sm-9">
                {$item.real_cost}
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <a href="{:url('order_print', ['order_id'=>$item.id])}" target="_blank" class="btn btn-secondary radius"><i class="Hui-iconfont">&#xe632;</i> 打印订单小票
                </a>
            </div>
        </div>
    </form>
</div>
{include file="pub/footer"/}
</body>
</html>